<script setup>
import {useRouter} from "vue-router";
import {defineProps} from "vue";

const router = useRouter()
const props = defineProps({
  noExit: {
    type: Boolean,
    default: false
  }
})

const exit = ()=>{
  router.push('/login')
}
</script>

<template>
<div class="simplify-header">
  <div class="content">
    <img src="@/assets/web-logo-1.png" alt="">
    <el-button class="exit" @click="exit" v-if="!noExit">退出</el-button>
  </div>
</div>
</template>

<style scoped lang="scss">
.simplify-header{
  height: 80px;
  background: #fff;
  display: flex;
  align-items: center;
}
.content{
  width: 1200px;
  height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  img{
    width: 118px;
    height: 40px;
  }
  .exit{
    width: 92px;
    height: 36px;
    background: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    border: 1px solid rgba(25,30,40,0.16);
    color: #191E28;
    font-size: 14px;
  }
}
</style>